package com.woniu.cq.medical.service;

import com.woniu.cq.medical.controller.form.RegisterForm;
import com.woniu.cq.medical.controller.form.RegisterListForm;
import com.woniu.cq.medical.controller.form.RegisterWindowForm;
import com.woniu.cq.medical.entity.Register;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-05
 */
public interface RegisterService extends IService<Register> {

    List<Register> queryRegisterThree(String patientIdCard,String status) throws ParseException;

    int insertRegister(RegisterForm registerForm) throws ParseException;

    /**
     * 验证当天是否有重复挂号
     * @param registerForm
     * @return
     */
    List<Register> queryRegisterRepetition(RegisterForm registerForm) throws ParseException;

    /**
     * 根据身份证ID查询挂号信息返回前台（多表）
     * @param patientIdCard
     * @return
     */
    List<RegisterListForm> queryRegisterList(String patientIdCard);

    /**
     * 窗口挂号
     * @param registerWindowForm
     * @return
     */
    int insertWindowRegister(RegisterWindowForm registerWindowForm);

    /**
     * 单天重复挂号
     * @param patientIdCard
     * @param dutyId
     * @return
     */
    List<Register> queryRegisterTwo(String patientIdCard, Integer dutyId);
}
